async function main() {
  const [deployer] = await ethers.getSigners();
  const TreeMarket = await ethers.getContractFactory("TreeNFTMarket");

  const TreeNFTAddress = "0x0AcD2751418e4a102a351d322908448F9De5e57e";
  const platformAddress = "0xBe68D3CD3E2177611ee4baF7f8Bf708534204e15"; // 替换为实际的平台收款地址
  const tree_market = await TreeMarket.deploy(TreeNFTAddress, platformAddress);
  await tree_market.waitForDeployment();

  console.log("tree_market deployed to:", await tree_market.getAddress());
}

main().catch((error) => {
  console.error(error);
  process.exitCode = 1;
});